package com.zking.ssm.NH.service.impl;


import com.zking.ssm.NH.mapper.ThotelAssessMapper;
import com.zking.ssm.NH.model.ThotelAssess;
import com.zking.ssm.NH.service.IThotelAssessService;
import com.zking.ssm.util.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class IThotelAssessServiceImpl implements IThotelAssessService {

    @Autowired
    private ThotelAssessMapper thotelAssessMapper;

    public IThotelAssessServiceImpl() {
    }

    public ThotelAssessMapper getThotelAssessMapper() {
        return thotelAssessMapper;
    }

    public void setThotelAssessMapper(ThotelAssessMapper thotelAssessMapper) {
        this.thotelAssessMapper = thotelAssessMapper;
    }

    @Override
    public int deleteByPrimaryKey(ThotelAssess id) {
        return thotelAssessMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ThotelAssess record) {
        return thotelAssessMapper.insert(record);
    }

    @Override
    public int insertSelective(ThotelAssess record) {
        return thotelAssessMapper.insertSelective(record);
    }

    @Override
    public ThotelAssess selectByPrimaryKey(Integer id) {
        return thotelAssessMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ThotelAssess record) {
        return thotelAssessMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKeyWithBLOBs(ThotelAssess record) {
        return thotelAssessMapper.updateByPrimaryKeyWithBLOBs(record);
    }

    @Override
    public int updateByPrimaryKey(ThotelAssess record) {
        return thotelAssessMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<ThotelAssess> lista(ThotelAssess record, PageBean pageBean) {
        List<ThotelAssess> bbb=thotelAssessMapper.lista(record);
        return bbb;

    }

    @Override
    public int deletepiliang(ThotelAssess record) {
        return thotelAssessMapper.deletepiliang(record);
    }
}
